home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Cafe 3
/
Visual Cafe 3.ISO
/
Vcafe
/
Main.bin
/
EmptyBorderBeanInfo.java
< prev
next >
Wrap
Text File
|
1998-10-21
|
1KB
|
53 lines
package com.symantec.itools.swing.borders;
import java.beans.*;
import com.symantec.itools.vcafe.beans.PropertyDescriptorAttributes;
import com.symantec.itools.vcafe.beans.PropertyHelpIDs;
public final class EmptyBorderBeanInfo
extends BorderBeanInfo
{
public EmptyBorderBeanInfo()
{
super();
set16x16ColorIconName("EmptyBorder.gif");
}
protected Class getBeanClass()
{
return EmptyBorder.class;
}
public PropertyDescriptor[] getPropertyDescriptors()
{
try
{
Class beanClass = getBeanClass();
PropertyDescriptor insets = new PropertyDescriptor("insets", beanClass);
insets.setValue(PropertyDescriptorAttributes.WIN_HELP_ATTRIBUTE, new Integer(PropertyHelpIDs.EMPTYBORDER_INSETS_HELP_ID));
PropertyDescriptor[] rv = { insets };
return rv;
}
catch(IntrospectionException e)
{
e.printStackTrace();
}
//Error, return no properties
return new PropertyDescriptor[0];
}
protected void modifyBeanDescriptor(BeanDescriptor beanDescriptor)
{
super.modifyBeanDescriptor(beanDescriptor);
beanDescriptor.setValue("WINHELP", winHelpID);
}
protected final static String winHelpID = "0x60135";
}